package com.blb.service;


import com.blb.pojo.User;
import java.util.List;
import java.sql.SQLException;


public interface IUserService {

    /**
     * 根据用户名获取用户对象
     * @param username
     */
    User getByUsername(String username) throws Exception;

    List<User> list() throws Exception;

    /**
     * 注册
     * @param user
     */
    void add(User user) throws SQLException;

}
